<form novalidate #frmUser="ngForm">
  <input #userName="ngModel" name="userName" placeholder="输入用户名" type="text" [(ngModel)]="user.name" required minlength="5" maxlength="20" />
  <select #userGender="ngModel" name="userGender" title="性别" [(ngModel)]="user.gender" required>
    <option value="">未知</option>
    <option value="0">男</option>
    <option value="1">女</option>
  </select>
</form>

<ul *ngIf="frmUser.invalid">
  <li *ngFor="let control of formControls(frmUser)">
    {{frmUser.controls[control].errors | json }}
  </li>
</ul>

<card title="测试Card的显示" type="primary">
  <p>显示部分</p>
</card>